<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">前台菜单</h3>
	</div>
	<div class="panel-body">
		<div id="tree" class="tree"></div>
	</div>

</div>
<script>
	$(function() {
		$.get(contextPath + '/wxMenu/menus').done(function(data){
			pageContents.find('#tree').tree({
				localData : data,
				multiSelect : false,
				loadingHTML : '<div class="tree-loading"><i class="fa fa-refresh fa-spin blue"></i></div>',
				'open-icon' : 'fa-minus fa ',
				'close-icon' : 'fa-plus fa'
			});
		});
	}); 
</script>
